# Contributor: Dhruvin Gandhi <contact@dhruvin.dev>
# Maintainer: Dhruvin Gandhi <contact@dhruvin.dev>
pkgname=py3-sphinx-autorun
_pyname=sphinx-autorun
pkgver=1.1.1
pkgrel=0
pkgdesc="Sphinx extension to attach the output of runblock directive to the document"
url="https://github.com/WhyNotHugo/sphinx-autorun"
arch="noarch"
license="BSD-2-Clause"
depends="python3 py3-sphinx"
makedepends="py3-setuptools py3-setuptools_scm"
options="!check" # no tests
source="https://files.pythonhosted.org/packages/source/${_pyname:0:1}/$_pyname/$_pyname-$pkgver.tar.gz"
builddir="$srcdir/$_pyname-$pkgver"

build() {
	python3 setup.py build
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="
cfe99a9cd249d142fa52986964bca7fa392d15036e69f504b3ea0fdabd37a7c43329101df7cb5d02ff614b9da9cbef15a39f519bf416daa0589829fb7b21a482  sphinx-autorun-1.1.1.tar.gz
"
